﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Src="~/Views/Home/bookingtool.ascx" TagPrefix="uc1" TagName="bookingtool" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    房间展示
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<article id="content">
    <% hotel.BLL.tb_info infobll = new hotel.BLL.tb_info();%>
        <div class="box1">
            <div class="wrapper">
                <uc1:bookingtool runat="server" ID="bookingtool" />
                <div class="col2 pad">
                    <h2>
                        <img src="../../Images/title_marker1.jpg" alt="">酒店展示</h2>
                    <div class="wrapper line1">

                          <%hotel.BLL.View_room VRBll = new hotel.BLL.View_room();
                          List<hotel.Model.View_room> VRmodlist = VRBll.GetModelList("");
                          int i = 1;
                          string Type1 = "col3";
                          foreach(hotel.Model.View_room VRMod in VRmodlist)
                          { 
                              Type1 = "col3 pad_left2";
                              if (i % 2 != 0)
                              {
                                  Type1 = "col3";
                              }
                           %>

                        <div class="<%=Type1 %>">
                            <figure class="pad_bot3">
                                <img src="../..<%=VRMod.url %>" alt=""></figure>
                            <p class="pad_bot1"><strong class="color3"><%=VRMod.title %></strong></p>
                            <p><%=VRMod.context %></p>
                            <ul class="list2">
                                <li><span><%=VRMod.rooms %></span>房间</li>
                                <li><span><%=VRMod.bednum %></span>床位</li>
                                <li><span><%=VRMod.Price %></span>价格</li>
                            </ul>
                           <!-- <a href="#" class="button2">确认</a> -->
                        </div>
                          <%i++;} %>
                    </div>
                </div>
            </div>
        </div>
        <div class="pad">
            <div class="wrapper line3">
                <div class="col2">
                    <h2>关于酒店</h2>
                    <p class="pad_bot1"><strong class="color2">提示</strong> </p>
                    <p class="pad_bot1">
                       <%=infobll.GetModel(26).text %>
                    </p>

                    <p class="pad_bot1"><strong class="color2">周边设施</strong></p>
                    <%=infobll.GetModel(27).text %>
                </div>
                <div class="col1 pad_left1">
                    <h2>房内设施</h2>
                    <p class="pad_bot1"><strong class="color2"></strong><br>
                      <%=infobll.GetModel(29).text %></p>
                    <figure class="pad_bot3">
                        <img src="../../Images/page4_img1.jpg" alt=""></figure>
                    <a href="#" class="button1">更多</a>
                </div>
            </div>
        </div>
    </article>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="scriptHolder" runat="server">
</asp:Content>
